<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="merchantapi_accounts_v1beta.html">Merchant API</a> . <a href="merchantapi_accounts_v1beta.accounts.html">accounts</a> . <a href="merchantapi_accounts_v1beta.accounts.accounttax.html">accounttax</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Returns the tax rules that match the conditions of GetAccountTaxRequest</p>
<p class="toc_element">
  <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates the tax settings of the account.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="get">get(name, x__xgafv=None)</code>
  <pre>Returns the tax rules that match the conditions of GetAccountTaxRequest

Args:
  name: string, Required. The name from which tax settings will be retrieved (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The tax settings of a merchant account. All methods require the admin role.
  &quot;account&quot;: &quot;A String&quot;, # Output only. The ID of the account to which these account tax settings belong.
  &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the tax setting. Format: &quot;{account_tax.name=accounts/{account}}&quot;
  &quot;taxRules&quot;: [ # Tax rules. &quot;Define the tax rules in each region. No tax will be presented if a region has no rule.&quot;
    { # Primary type convension percent micro : 100% = 1 000 000 and 1% = 10 000 cannot be negative. Information about tax nexus and related parameters applicable to orders delivered to the area covered by a single tax admin. Nexus is created when a merchant is doing business in an area administered by tax admin (only US states are supported for nexus configuration). If merchant has nexus in a US state, merchant needs to pay tax to all tax authorities associated with the shipping destination. Next Id : 8
      &quot;effectiveTimePeriod&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Required. Time period when this rule is effective. If the duration is missing from effective_time listed, then it is open ended to the future. The start of this time period is inclusive, and the end is exclusive.
        &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
        &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
      },
      &quot;locationId&quot;: &quot;A String&quot;, # The admin_id or criteria_id of the region in which this rule is applicable.
      &quot;postCodeRange&quot;: { # A range of postal codes that defines the area. # The range of postal codes in which this rule is applicable.
        &quot;end&quot;: &quot;A String&quot;, # The end of the postal code range. Will be the same as start if not specified.
        &quot;start&quot;: &quot;A String&quot;, # Required. The start of the postal code range, which is also the smallest in the range.
      },
      &quot;regionCode&quot;: &quot;A String&quot;, # Region code in which this rule is applicable
      &quot;selfSpecifiedRateMicros&quot;: &quot;A String&quot;, # A fixed rate specified in micros, where 100% = 1_000_000. Suitable for origin-based states.
      &quot;shippingTaxed&quot;: True or False, # If set, shipping charge is taxed (at the same rate as product) when delivering to this admin&#x27;s area. Can only be set on US states without category.
      &quot;useGoogleRate&quot;: True or False, # Rate that depends on delivery location: if merchant has a nexus in corresponding US state, rates from authorities with jurisdiction over delivery area are added up.
    },
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
  <pre>Updates the tax settings of the account.

Args:
  name: string, Identifier. The name of the tax setting. Format: &quot;{account_tax.name=accounts/{account}}&quot; (required)
  body: object, The request body.
    The object takes the form of:

{ # The tax settings of a merchant account. All methods require the admin role.
  &quot;account&quot;: &quot;A String&quot;, # Output only. The ID of the account to which these account tax settings belong.
  &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the tax setting. Format: &quot;{account_tax.name=accounts/{account}}&quot;
  &quot;taxRules&quot;: [ # Tax rules. &quot;Define the tax rules in each region. No tax will be presented if a region has no rule.&quot;
    { # Primary type convension percent micro : 100% = 1 000 000 and 1% = 10 000 cannot be negative. Information about tax nexus and related parameters applicable to orders delivered to the area covered by a single tax admin. Nexus is created when a merchant is doing business in an area administered by tax admin (only US states are supported for nexus configuration). If merchant has nexus in a US state, merchant needs to pay tax to all tax authorities associated with the shipping destination. Next Id : 8
      &quot;effectiveTimePeriod&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Required. Time period when this rule is effective. If the duration is missing from effective_time listed, then it is open ended to the future. The start of this time period is inclusive, and the end is exclusive.
        &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
        &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
      },
      &quot;locationId&quot;: &quot;A String&quot;, # The admin_id or criteria_id of the region in which this rule is applicable.
      &quot;postCodeRange&quot;: { # A range of postal codes that defines the area. # The range of postal codes in which this rule is applicable.
        &quot;end&quot;: &quot;A String&quot;, # The end of the postal code range. Will be the same as start if not specified.
        &quot;start&quot;: &quot;A String&quot;, # Required. The start of the postal code range, which is also the smallest in the range.
      },
      &quot;regionCode&quot;: &quot;A String&quot;, # Region code in which this rule is applicable
      &quot;selfSpecifiedRateMicros&quot;: &quot;A String&quot;, # A fixed rate specified in micros, where 100% = 1_000_000. Suitable for origin-based states.
      &quot;shippingTaxed&quot;: True or False, # If set, shipping charge is taxed (at the same rate as product) when delivering to this admin&#x27;s area. Can only be set on US states without category.
      &quot;useGoogleRate&quot;: True or False, # Rate that depends on delivery location: if merchant has a nexus in corresponding US state, rates from authorities with jurisdiction over delivery area are added up.
    },
  ],
}

  updateMask: string, The list of fields to be updated
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The tax settings of a merchant account. All methods require the admin role.
  &quot;account&quot;: &quot;A String&quot;, # Output only. The ID of the account to which these account tax settings belong.
  &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the tax setting. Format: &quot;{account_tax.name=accounts/{account}}&quot;
  &quot;taxRules&quot;: [ # Tax rules. &quot;Define the tax rules in each region. No tax will be presented if a region has no rule.&quot;
    { # Primary type convension percent micro : 100% = 1 000 000 and 1% = 10 000 cannot be negative. Information about tax nexus and related parameters applicable to orders delivered to the area covered by a single tax admin. Nexus is created when a merchant is doing business in an area administered by tax admin (only US states are supported for nexus configuration). If merchant has nexus in a US state, merchant needs to pay tax to all tax authorities associated with the shipping destination. Next Id : 8
      &quot;effectiveTimePeriod&quot;: { # Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. # Required. Time period when this rule is effective. If the duration is missing from effective_time listed, then it is open ended to the future. The start of this time period is inclusive, and the end is exclusive.
        &quot;endTime&quot;: &quot;A String&quot;, # Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.
        &quot;startTime&quot;: &quot;A String&quot;, # Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.
      },
      &quot;locationId&quot;: &quot;A String&quot;, # The admin_id or criteria_id of the region in which this rule is applicable.
      &quot;postCodeRange&quot;: { # A range of postal codes that defines the area. # The range of postal codes in which this rule is applicable.
        &quot;end&quot;: &quot;A String&quot;, # The end of the postal code range. Will be the same as start if not specified.
        &quot;start&quot;: &quot;A String&quot;, # Required. The start of the postal code range, which is also the smallest in the range.
      },
      &quot;regionCode&quot;: &quot;A String&quot;, # Region code in which this rule is applicable
      &quot;selfSpecifiedRateMicros&quot;: &quot;A String&quot;, # A fixed rate specified in micros, where 100% = 1_000_000. Suitable for origin-based states.
      &quot;shippingTaxed&quot;: True or False, # If set, shipping charge is taxed (at the same rate as product) when delivering to this admin&#x27;s area. Can only be set on US states without category.
      &quot;useGoogleRate&quot;: True or False, # Rate that depends on delivery location: if merchant has a nexus in corresponding US state, rates from authorities with jurisdiction over delivery area are added up.
    },
  ],
}</pre>
</div>

</body></html>